/*AyflEomXWyqCHfdTxzWda+ZiNDhxOZJeZF/oshAh0uo=*/
/*
 * @Author: xiahui 
 * @PageInfo: 列表按钮区
 * @Date: 2019-02-28 21:21:42 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-03-08 15:19:09
 */
import { BUTTONID } from '../../constance';
import editBtnClick from './editBtnClick';
import searchBtnClick from './searchBtnClick';
import refreshBtnClick from './refreshBtnClick';
import queryAboutBusinessBtnClick from './queryAboutBusinessBtnClick';
import cancelBtenClick from './cancelBtenClick';
import genPayreqBtnClick from './genPayreqBtnClick';
import paymentBtnClick from './paymentBtnClick';
import saveBtnClick from './saveBtnClick';
import deleteBtnClick from './deleteBtnClick';
import addBtnClick from './addBtnClick';
import insertLineBtnClick from './insertLineBtnClick';
import deleteLineBtnClick from './deleteLineBtnClick';
import copyLineBtnClick from './copyLineBtnClick';
import printBtnClick from './printBtnClick';

function buttonClick(props, id, text, record, index) {
	switch (id) {
		case BUTTONID.Edit:
			editBtnClick.call(this, props);
			break;
		case BUTTONID.GenPayreq:
			genPayreqBtnClick.call(this, props);
			break;
		case BUTTONID.Payment:
			paymentBtnClick.call(this, props);
			break;
		case BUTTONID.QueryAboutBusiness:
			queryAboutBusinessBtnClick.call(this, props);
			break;
		case BUTTONID.Print:
			printBtnClick.call(this, props);
			break;
		case BUTTONID.Refresh:
			refreshBtnClick.call(this, props);
			break;

		case BUTTONID.Add:
			addBtnClick.call(this, props);
			break;
		case BUTTONID.Delete:
			deleteBtnClick.call(this, props);
			break;
		case BUTTONID.Save:
			saveBtnClick.call(this, props);
			break;
		case BUTTONID.Cancel:
			cancelBtenClick.call(this, props);
			break;

		case BUTTONID.InsertLine:
			insertLineBtnClick.call(this, props, record, index);
			break;
		case BUTTONID.DeleteLine:
			deleteLineBtnClick.call(this, props, record, index);
			break;
		case BUTTONID.CopyLine:
			copyLineBtnClick.call(this, props, record, index);
			break;
	}
}

export { buttonClick, searchBtnClick };

/*AyflEomXWyqCHfdTxzWda+ZiNDhxOZJeZF/oshAh0uo=*/